import React, { useEffect } from 'react';
import StyledButton from './StyledButton'
const ShowValueFun = (props) => {
    console.log(this)
    const showValue = () => {
        console.log(props.value)
    }
    const handleClick = () => {
        setTimeout(showValue, 3000)
    }

    useEffect(() => {
        console.log(props.value, 'dasdasds')
    })
    return (
        <StyledButton onClick={() => {
            setTimeout(() => { console.log(props.value) }, 3000)
        }} title='函数式点击'>follw</StyledButton>
    );
}

export default ShowValueFun